package com.easy.dao;

import com.easy.bean.Collect;
import com.easy.util.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface CollectDao {

    List<Collect> getCollectList(@Param("page") Page page, @Param("text")String text);
    int addCollect(@Param("collect") Collect collect);
    int editCollect(@Param("collect") Collect collect);
    int deleteCollect(@Param("userid") int userid,@Param("proid") int proid);
    int CollectCount(@Param("text") String text);
    List<Collect> collectList(@Param("userid")int userid);
}
